package com.uni.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author Uni
 * @create 2021/12/18 11:46
 */
@AllArgsConstructor
@Data
public class User {
    private int id = 0;
    private String name;
    private String password;
    private String phone;
    public User(String name, String password, String phone){
        this.name = name;
        this.password =password;
        this.phone = phone;
    };
    public User clone(){
        return new User(id, name, password, phone);
    }
}
